package org.wangchaocheng.cloudgallery.query.common;

import com.alibaba.cola.dto.PageQuery;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 基础分页查询条件
 *
 * @author wangchaocheng
 * @date 2025/04/02
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BasePageQuery extends PageQuery {

    /**
     * 是否升序
     */
    public boolean isOrderByAsc() {
        return ASC.equals(this.getOrderDirection());
    }
}
